package com.naiterui.ehp.bs.im.network.protocl;

import java.io.Serializable;
import java.util.StringJoiner;

/**
 * 线上诊室消息
 * @author Ldl
 * @date 2018/11/21 13:56
 * @since 1.0.0
 */
public class ConsultRoomDetail implements IChecker, Serializable {

    private String patientName;

    private String gender;

    private String age;

    /**
     * 初诊/复诊
     */
    private String firstDiagnosis;
    /**
     * 医助初诊病情
     */
    private String firstDiagnosedDesc;

    /**
     * 病历Id
     */
    private String medicalRecordId;

    public ConsultRoomDetail() {
    }

    public ConsultRoomDetail(String patientName, String gender, String age, String firstDiagnosis, String firstDiagnosedDesc,
                             String medicalRecordId) {
        this.patientName = patientName;
        this.gender = gender;
        this.age = age;
        this.firstDiagnosis = firstDiagnosis;
        this.firstDiagnosedDesc = firstDiagnosedDesc;
        this.medicalRecordId = medicalRecordId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getFirstDiagnosis() {
        return firstDiagnosis;
    }

    public void setFirstDiagnosis(String firstDiagnosis) {
        this.firstDiagnosis = firstDiagnosis;
    }

    public String getFirstDiagnosedDesc() {
        return firstDiagnosedDesc;
    }

    public void setFirstDiagnosedDesc(String firstDiagnosedDesc) {
        this.firstDiagnosedDesc = firstDiagnosedDesc;
    }


    public String getMedicalRecordId() {
        return medicalRecordId;
    }

    public void setMedicalRecordId(String medicalRecordId) {
        this.medicalRecordId = medicalRecordId;
    }

    @Override
    public boolean selfValidate() {
        return true;
    }


    @Override
    public String toString() {
        return new StringJoiner(", ", ConsultRoomDetail.class.getSimpleName() + "[", "]")
                .add("patientName='" + patientName + "'")
                .add("gender='" + gender + "'")
                .add("age='" + age + "'")
                .add("firstDiagnosis='" + firstDiagnosis + "'")
                .add("firstDiagnosedDesc='" + firstDiagnosedDesc + "'")
                .add("medicalRecordId='" + medicalRecordId + "'")
                .toString();
    }
}
